package cn.wolfcode.crm.service;

import cn.wolfcode.crm.domain.Permission;
import cn.wolfcode.crm.query.QueryObject;
import com.github.pagehelper.PageInfo;


import java.util.List;

public interface IPermissionService {
    void delete(Long id);
    void save(Permission permission);
    Permission get(Long id);
    List<Permission> listAll();
    void update(Permission permission);
    //分页的方法
    PageInfo query(QueryObject qo);


    void reload();

    //根据员工id查询权限数据,额外查询,三个表的关联
    List<String> selectByEmpId(Long id);

}
